import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const store = new Vuex.Store({

	state: {
		address: "",
		currentPagePath:"",
		currentPageOption:"",
		userInfo:uni.getStorageSync('userInfo'),
		classCurrent:0,//商品分类首页
		
		getConfig:uni.getStorageSync('getConfig'),
		
		
	},
	mutations: {
	  adduser(state){
	  	  	  state.userInfo=uni.getStorageSync("userInfo")
	  },
	  
	  addgetConfig(state){
	  	  	  state.getConfig=uni.getStorageSync("getConfig")
	  },
	  
		
	},
	actions: {
		
	},
	getters: {
		
	}
});

export default store;